<?php
/**
 * Created by PhpStorm.
 * User: chenx
 * Date: 18-3-13
 * Time: 下午6:31
 */

namespace common\models;


use yii\db\ActiveRecord;

class Code extends ActiveRecord
{
    public static function tableName()
    {
        return 'code';
    }

    public function rules()
    {
        return [
          [['phone','code','client_ip'],'string'],
          [['id','time','status','is_del'],'integer'],
        ];
    }

    public function attributeLabels()
    {
        return [
            'id	'=>'id',
            'phone'=>'电话号码',
            'code'=>'字符串',
            'time'=>'发送时间',
            'status'=>'状态',
            'client_ip'=>'客户端ip',
            'is_del'=>'是否使用',
        ];
    }
}